﻿using Inovout.Cloud.Applications.Security.Models;
using Inovout.Cloud.Console.Web.Models;
using Inovout.Cloud.Web.Mvc;
using System.Web.Mvc;

namespace Inovout.Cloud.Console.Web.Controllers
{
    public class BrowserApplicationCredentialController : CredentialController<BrowserApplicationCredential>
    {
        //[HttpPost]
        //public override ActionResult Save(BrowserApplicationCredential browserApplicationCredential)
        //{
        //    base.RepositoryService.Save(browserApplicationCredential);
        //    if (base.Request.IsAjaxRequest())
        //    {
        //        //临时解决方案
        //        browserApplicationCredential.ApplicationUser = null;
        //        return Json(new ApplicationCredentialInfo<BrowserApplicationCredential>(browserApplicationCredential));
        //    }
        //    else
        //    {
        //        return RedirectToAction("List");
        //    }
        //}
    }
}